/****************************************************************************
Includes.
*****************************************************************************/
#include <cmath>

/****************************************************************************
Constants.
*****************************************************************************/
#define PI       3.14159265
#define LARGE_VAL	1e10 
#define SMALL_VAL   1e-3
/****************************************************************************
Function Prototypes.
*****************************************************************************/
bool   IsSmall		 (double);
int    Sign          (double);
double Clamp         (double, double, double);
double Divide        (double, double);
int    SolveLinear   (double, double, double*);
int    SolveQuadratic(double, double, double, double*);